$fontSize_14: 0.8vw;
$fontSize_16: 0.9vw;
$fontSize_18: 1vw;
$fontSize_22: 1.1vw;
$fontSize_24: 1.26vw;
$fontSize_28: 1.3vw;
$fontSize_32: 1.4vw;
$fontSize_36: 1.8vw;
$fontSize_40: 2.1vw;
$fontSize_48: 2.5vw;
$fontSize_50: 2.6vw;
$fontSize_54: 2.7vw;
$fontSize_64: 3.2vw;
$fontSize_70: 3.5vw;
$fontSize_90: 4.5vw;
$fontSize_100: 5vw;
$fontSize_200: 10vw;
$f: 19.2;

.home {
  position: relative;
  width: 100%;
  .main{
    margin: 11vw 6vw 6vw 6vw;
    .section1{
      display: flex;
      align-items: center;
      .dot{
        display: flex;
        align-items: center;
        margin: 0 7vw;
        span{
          width: 6/$f+vw;
          height: 6/$f+vw;
          border-radius: 50%;
          background-color: #000;
        }
        p{
          color: #000;
          font-size: $fontSize_16;
          margin-left: .6vw;
        }
      }
      .types{
        display: flex;
        a{
          display: flex;
          align-items: flex-end;
          color: #999A9A;
          font-size: $fontSize_48;
          font-family: 'SourceHanSansCN-Medium';
          margin-right: 3vw;
          transition: all 600ms;
          span{
            font-size: $fontSize_16;
            font-family: 'SourceHanSansCN-Normal';
            margin-left: 0.5vw;
          }
          &:hover{
            color: #1B2170;
          }
        }
        .active{
          color: #1B2170;
        }
      }
    }
    .list{
      display: flex;
      flex-wrap: wrap;
      width: 103%;
      margin-left: -1.5%;
      a{
        display: block;
        width: 29%;
        margin-left: 3%;
        margin-top: 3vw;
        .pic{
          overflow: hidden;
          img{
            width: 100%;
            display: block;
            object-fit: cover;
            transition: all 600ms;
          }
        }
        .p1{
          color: #363940;
          font-size: $fontSize_24;
          font-weight: 700;
          margin: 1.5vw 0 0.3vw 0;
          transition: all 600ms;
        }
        .time{
          color: #333;
          font-size: $fontSize_14;
        }
        .des{
          color: #363940;
          font-size: $fontSize_16;
          line-height: 1.4;
          margin-top: 1.2vw;
          word-break: break-all;
          text-overflow: ellipsis;
          display: -webkit-box;
          -webkit-box-orient: vertical;
          -webkit-line-clamp: 2;
          overflow: hidden;
        }
        &:hover{
          .pic{
            img{
              transform: scale(1.05);
            }
          }
          .p1{
            color:#1B2170;
          }
        }
      }
    }
    .pager{
      display: flex;
      justify-content: center;
      margin: 3vw 0;
      align-items: center;
      svg{
        display: block;
      }
      .nums{
        display: flex;
        margin: 0 1vw;
        a{
          border: 1px solid #666;
          width: 28/$f+vw;
          height: 28/$f+vw;
          border-radius: 50%;
          display: flex;
          align-items: center;
          color: #666;
          font-size: $fontSize_14;
          justify-content: center;
          margin: 0 0.5vw;
          transition: all 600ms;
          &:hover{
            border-color: #000;
            color: #000;
          } 
        }
        .active{
          border-color: #000;
        }
      }
    }
  }
  @media screen and (max-width: 1024px) {
    padding-top: 60px;
     .main{
      margin: 40px 5%;
      .section1{
        flex-direction: column;
        align-items: flex-start;
        .dot{
          margin: 0;
          span{
            width: 6px;
            height: 6px;
          }
          p{
            font-size: 18px;
            margin-left: 5px;
          }
        }
        .types{
          flex-wrap: wrap;
          a{
            font-size: 24px;
            width: 50%;
            margin: 10px 0 0 0;
            span{
              font-size: 14px;
            }
          }
        }
      }
      .list{
        width: 100%;
        margin-left: 0;
        a{
          width: 100%;
          margin-left: 0;
          margin-top: 25px;
          .p1{
            margin: 15px 0 10px 0;
            font-size: 18px;
          }
          .time{
            font-size: 14px;
          }
          .des{
            font-size: 14px;
          }
        }
      }
      .pager{
        margin: 30px 0;
        .nums{
          margin: 0 10px;
          a{
            font-size: 14px;
            width: 30px;
            height: 30px;
            margin: 0 10px;
          }
        }
      }
     }
  }
}